package com.jushu.storbox.task.tqueue;

import java.util.concurrent.atomic.AtomicLong;

public abstract class UploadPriorityTask implements Runnable{
	private static final AtomicLong seq = new AtomicLong(0);
	protected final long seqNum;
	
	protected UploadPriorityTask() {
		seqNum = seq.getAndIncrement();
	}
	
	public abstract int getPriority();
	
	public abstract void setPriority(int priority);
	
	public abstract void setTipTopPriority();
	
	public final long getSequenceNumber() {
		return seqNum;
	}
	
	public abstract String getId();
}
